package com.iwop.moto.model;

import com.iwop.moto.comm.Comm;
import com.iwop.moto.utils.stringUtil.BigDecimalUtil;
import com.iwop.moto.utils.stringUtil.StringUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by mobom on 2016/12/28.
 */
public class MGPOrder implements Serializable {

    private static final long serialVersionUID = 1299112210740063123L;
    private String sid;
    private String userId;
    private String storeId;
    private String content;
    private String statusFlag;
    private Date   statusTime;
    private Date   addTime;
    private Double money;
    private String orderNo;
    private String payType;
    private String payTradeNo;

    private String userName;
    private Double payFree;
    private String sellerUserId;
    private Double payMoney;
    private String storeName;
    private String sellerTel;
    private Double couponMoney;
    private Double brokerage;
    private String mchType;

    public String getMchType() {
        return mchType;
    }

    public void setMchType(String mchType) {
        this.mchType = mchType;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getSellerTel() {
        return sellerTel;
    }

    public void setSellerTel(String sellerTel) {
        this.sellerTel = sellerTel;
    }

    public Double getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(Double couponMoney) {
        this.couponMoney = couponMoney;
    }

    public Double getBrokerage() {
        return brokerage;
    }

    public void setBrokerage(Double brokerage) {
        this.brokerage = brokerage;
    }

    public Double getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(Double payMoney) {
        this.payMoney = payMoney;
    }

    public String getSellerUserId() {
        return sellerUserId;
    }

    public void setSellerUserId(String sellerUserId) {
        this.sellerUserId = sellerUserId;
    }

    public Double getPayFree() {
        return payFree;
    }

    public void setPayFree(Double payFree) {
        this.payFree = payFree;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(String statusFlag) {
        this.statusFlag = statusFlag;
    }

    public Date getStatusTime() {
        return statusTime;
    }

    public void setStatusTime(Date statusTime) {
        this.statusTime = statusTime;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
        setPayFree(BigDecimalUtil.getMultiply(money, Comm.BROKERAGE));
        setPayMoney(BigDecimalUtil.getSubtract(money,payFree));
    }

    public String getPayTradeNo() {
        return payTradeNo;
    }

    public void setPayTradeNo(String payTradeNo) {
        this.payTradeNo = payTradeNo;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }
}
